package com.quiz.bis.domain.dto;

import lombok.Data;

import java.util.List;

/**
 * 题目查重详细结果
 */
@Data
public class QuestionDuplicateDetail {
    private Long questionId;
    private Long targetId;
    private double titleSimilarity;
    private double contentSimilarity;
    private double formulaSimilarity;
    private double imageSimilarity;
    private double tableSimilarity;
    private double overallSimilarity;
    private List<FormulaMatch> formulaMatches;
    private List<ImageMatch> imageMatches;
    private List<TableMatch> tableMatches;
}

/**
 * 公式匹配结果
 */
@Data
class FormulaMatch {
    private String formula1;
    private String formula2;
    private double similarity;
}

/**
 * 图片匹配结果
 */
@Data
class ImageMatch {
    private Long imageId1;
    private Long imageId2;
    private String imagePath1;
    private String imagePath2;
    private double similarity;
}

/**
 * 表格匹配结果
 */
@Data
class TableMatch {
    private String table1;
    private String table2;
    private double similarity;
}